import instance, { buildOptions } from './index'

export async function CreateCompany(data: any) {
    const options = buildOptions(data, "hr/company/company_create");
    return instance(options);
}

export async function JoinCompany(data: any) {
    const options = buildOptions(data, "hr/company/join_company");
    return instance(options);
}

export async function LicenseOcr(data: any) {
    const options = buildOptions(data, "hr/company/ocr");
    return instance(options);
}

export async function LicenseVerify(data: any) {
    const options = buildOptions(data, "hr/company/company_verify");
    return instance(options);
}

export async function CompanyAuth(data: any) {
    const options = buildOptions(data, "hr/company/company_auth");
    return instance(options);
}

export async function CompanyList() {
    const options = buildOptions('', "hr/company/company_list");
    return instance(options);
}

export async function CompanyInfo(data: any) {
    const options = buildOptions(data, "hr/company/company_info");
    return instance(options);
}

export async function ApplyList(data: any) {
    const options = buildOptions(data, "hr/company/company_apply_list", "GET");
    return instance(options);
}

export async function ApplyHandle(data: any) {
    const options = buildOptions(data, "hr/company/company_apply_handle");
    return instance(options);
}

export async function SearchCompany(data: any) {
    const options = buildOptions(data, "hr/company/search_company");
    return instance(options);
}

export async function ChangeAdmin(data: any) {
    const options = buildOptions(data, "hr/company/modify_admin");
    return instance(options);
}

export async function DelCompany(data: any) {
    const options = buildOptions(data, "hr/company/del_company");
    return instance(options);
}